package com.liaowei.system.openfeign;

import com.liaowei.common.BaseResponse;
import com.liaowei.model.vo.UserVO;
import com.liaowei.system.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-service", configuration = OpenFeignConfig.class)
public interface UserClient {
    // 根据标签删除用户标签记录
    @DeleteMapping("/users/tags/{tagId}")
    BaseResponse<String> deleteUserTagByTagId(@PathVariable long tagId);

    // 根据用户id查询用户信息
    @GetMapping("/users/{userId}")
    BaseResponse<UserVO> getById(@PathVariable Long userId);
}
